package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Creat with IntelliJ IDEA
 * Description:
 * User:WZW
 * Date:2022-08-25
 * Time:21:16
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/sayhi")
    public String sayHi() {
        System.out.println("你好，世界！");
        return "你好，世界！";
    }

    @RequestMapping("/sayhi2")
    public String sayHi2() {
        System.out.println("世界！你好，");
        int num = 10 / 0;
        return "世界！你好，";
    }

}
